<!--

生成最基本的Restful模板页面

顶部有按（门店、时间段*）查询 添加按钮

包含一个 ag-grid 列表，默认表头只有一行，每列都可查询，默认每条最后有打开、删除按钮

有新增、修改弹出层
-->

<div class="view-header">
    <div class="view-header-left">
    	<h3>库存信息</h3>
        <!-- 添加车辆 -->
        <!-- <div class="view-header-item add-color" title="添加车辆"
             ng-click="add_open = !add_open" ng-show="!add_open && !edit_open">
            <i class="fa fa-plus"></i>
        </div> -->

        <!-- add -->
        <!-- <div class="view-header-item add-color above-cover"
             title="关闭" ng-click="add_open = !add_open"
             ng-show="add_open">
            <i class="fa fa-close"></i>
        </div>

        <div class="view-header-item above-cover" title="提交"
             ng-click="submit_add()" ng-show="add_open">
            <i class="fa fa-check"></i>
        </div> -->

        <!-- edit-->
        <!-- <div class="view-header-item edit-color above-cover"
             title="关闭"
             ng-click="edit_open = !edit_open" ng-show="edit_open">
            <i class="fa fa-close"></i>
        </div>

        <div class="view-header-item edit-color above-cover"
             title="提交" ng-click="submit_edit()"
             ng-show="edit_open">
            <i class="fa fa-check"></i>
        </div> -->

    </div>

</div>
<div class="view-content ">
    <div ag-grid="grid" class="ag-fresh ag-custom-center" style="height :100%"></div>
</div>


<!-- 添加车辆 -->
<div class="data-overlay" ng-show="add_open">
    <div class="overlay-container">
    	<div class="new-header-color overlay-header">添加车辆</div>
    	<div ng-form name="form_add_store" novalidate="novalidate">
	        <div class="new-content overlay-content">
	            <div class="new-block overlay-column">
					<div class="overlay-title">添加车辆--数据<i class="fa fa-angle-down"></i></div>
					<div class="overlay-item">
						<span class="overlay-name">颜色</span>
						<input ng-model="record_add.color" />
					</div>
					<div class="overlay-item">
						<span class="overlay-name">上架时间</span>
						<!-- <input ng-model="record_add.start_sale_time" /> -->
						<datetimepicker class="search-date-start"
                        	min-view="2"
                        	ng-model="record_add.start_sale_time"></datetimepicker>
					</div>
					<div class="overlay-item">
						<span class="overlay-name">里程</span>
						<input ng-model="record_add.miles" />
					</div>
					<div class="overlay-item">
						<span class="overlay-name">车架号</span>
						<input ng-model="record_add.vid" />
					</div>
					<div class="overlay-item">
						<span class="overlay-name">交强险费用</span>
						<input ng-model="record_add.compulsory_insurance_fee" />
					</div>
					<div class="overlay-item">
						<span class="overlay-name">发动机号</span>
						<input ng-model="record_add.engine_no" />
					</div>
					<div class="overlay-item">
						<span class="overlay-name">整备费用</span>
						<input ng-model="record_add.reconditioning_cost" />
					</div>
				</div>
				<div class="new-block overlay-column">
					<div class="overlay-title">添加车辆--数据<i class="fa fa-angle-down"></i></div>
					<div class="overlay-item">
						<span class="overlay-name">车型</span>
						<input ng-model="record_add.model" />
					</div>
					<div class="overlay-item">
						<span class="overlay-name">车况</span>
						<input ng-model="record_add.vehicle_status" />
					</div>
					<div class="overlay-item">
						<span class="overlay-name">编号</span>
						<input ng-model="record_add.sn" />
					</div>
					<div class="overlay-item">
						<span class="overlay-name">id</span>
						<input ng-model="record_add.id" />
					</div>
					<div class="overlay-item">
						<span class="overlay-name">车辆id</span>
						<input ng-model="record_add.vehicle_id" />
					</div>
					<div class="overlay-item">
						<span class="overlay-name">品牌</span>
						<input ng-model="record_add.brand" />
					</div>
					<div class="overlay-item">
						<span class="overlay-name">地址</span>
						<input ng-model="record_add.address" />
					</div>
				</div>
				<div class="new-block overlay-column">
					<div class="overlay-title">添加车辆--数据<i class="fa fa-angle-down"></i></div>
					<div class="overlay-item">
						<span class="overlay-name">数量</span>
						<input ng-model="record_add.quantity" />
					</div>
					<div class="overlay-item">
						<span class="overlay-name">验车费用</span>
						<input ng-model="record_add.validate_cost" />
					</div>
					<div class="overlay-item">
						<span class="overlay-name">内饰颜色</span>
						<input ng-model="record_add.interior_color" />
					</div>
					<div class="overlay-item">
						<span class="overlay-name">入库时间</span>
						<!-- <input ng-model="record_add.stock_time" /> -->
						<datetimepicker class="search-date-start"
                        	min-view="2"
                        	ng-model="record_add.stock_time"></datetimepicker>
					</div>
					<div class="overlay-item">
						<span class="overlay-name">base_id</span>
						<input ng-model="record_add.base_id" />
					</div>
					<div class="overlay-item">
						<span class="overlay-name">库存ID</span>
						<input ng-model="record_add.inventory_id" />
					</div>
					<div class="overlay-item">
						<span class="overlay-name">初登日期</span>
						<!-- <input ng-model="record_add.register_date" /> -->
						<datetimepicker class="search-date-start"
                        	min-view="2"
                        	ng-model="record_add.register_date"></datetimepicker>
					</div>
				</div>
				<div class="new-block overlay-column">
					<div class="overlay-title">添加车辆--数据<i class="fa fa-angle-down"></i></div>
					<div class="overlay-item">
						<span class="overlay-name">入库号</span>
						<input ng-model="record_add.stock_sn" />
					</div>
					<div class="overlay-item">
						<span class="overlay-name">型号</span>
						<input ng-model="record_add.version" />
					</div>
					<div class="overlay-item">
						<span class="overlay-name">车牌</span>
						<input ng-model="record_add.license_plate" />
					</div>
					<div class="overlay-item">
						<span class="overlay-name">保养费用</span>
						<input ng-model="record_add.upkeep_cost" />
					</div>
					<div class="overlay-item">
						<span class="overlay-name">仓库ID</span>
						<input ng-model="record_add.warehouse_id" />
					</div>
					<div class="overlay-item">
						<span class="overlay-name">仓库编号</span>
						<input ng-model="record_edit.warehouse_sn" />
					</div>
				</div>

	        </div>
	    </div>
    </div>
</div>


<div class="new-cover" ng-show="edit_open">
    <div class="new-container">
        <div class="new-content">
            <div ng-form name="form_edit" novalidate="novalidate">
                <div class="new-header new-header-color">store_edit</div>
            </div>
            <div class="new-block" >
	<div class="new-item">
		<span>color</span>
		<input ng-model="record_edit.color" />
	</div>
	<div class="new-item">
		<span>start_sale_time</span>
		<input ng-model="record_edit.start_sale_time" />
	</div>
	<div class="new-item">
		<span>miles</span>
		<input ng-model="record_edit.miles" />
	</div>
	<div class="new-item">
		<span>vid</span>
		<input ng-model="record_edit.vid" />
	</div>
	<div class="new-item">
		<span>compulsory_insurance_fee</span>
		<input ng-model="record_edit.compulsory_insurance_fee" />
	</div>
	<div class="new-item">
		<span>engine_no</span>
		<input ng-model="record_edit.engine_no" />
	</div>
	<div class="new-item">
		<span>reconditioning_cost</span>
		<input ng-model="record_edit.reconditioning_cost" />
	</div>
	<div class="new-item">
		<span>model</span>
		<input ng-model="record_edit.model" />
	</div>
	<div class="new-item">
		<span>vehicle_status</span>
		<input ng-model="record_edit.vehicle_status" />
	</div>
	<div class="new-item">
		<span>sn</span>
		<input ng-model="record_edit.sn" />
	</div>
	<div class="new-item">
		<span>id</span>
		<input ng-model="record_edit.id" />
	</div>
	<div class="new-item">
		<span>vehicle_id</span>
		<input ng-model="record_edit.vehicle_id" />
	</div>
	<div class="new-item">
		<span>brand</span>
		<input ng-model="record_edit.brand" />
	</div>
	<div class="new-item">
		<span>address</span>
		<input ng-model="record_edit.address" />
	</div>
	<div class="new-item">
		<span>quantity</span>
		<input ng-model="record_edit.quantity" />
	</div>
	<div class="new-item">
		<span>validate_cost</span>
		<input ng-model="record_edit.validate_cost" />
	</div>
	<div class="new-item">
		<span>interior_color</span>
		<input ng-model="record_edit.interior_color" />
	</div>
	<div class="new-item">
		<span>stock_time</span>
		<input ng-model="record_edit.stock_time" />
	</div>
	<div class="new-item">
		<span>base_id</span>
		<input ng-model="record_edit.base_id" />
	</div>
	<div class="new-item">
		<span>inventory_id</span>
		<input ng-model="record_edit.inventory_id" />
	</div>
	<div class="new-item">
		<span>register_date</span>
		<input ng-model="record_edit.register_date" />
	</div>
	<div class="new-item">
		<span>stock_sn</span>
		<input ng-model="record_edit.stock_sn" />
	</div>
	<div class="new-item">
		<span>version</span>
		<input ng-model="record_edit.version" />
	</div>
	<div class="new-item">
		<span>license_plate</span>
		<input ng-model="record_edit.license_plate" />
	</div>
	<div class="new-item">
		<span>upkeep_cost</span>
		<input ng-model="record_edit.upkeep_cost" />
	</div>
	<div class="new-item">
		<span>warehouse_id</span>
		<input ng-model="record_edit.warehouse_id" />
	</div>
	<div class="new-item">
		<span>warehouse_sn</span>
		<input ng-model="record_edit.warehouse_sn" />
	</div>
</div>

        </div>
    </div>
</div>
